﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PersonaLibrary.ViewModel
{
	internal class WindowViewModel : BaseViewModel
	{
		public RelayCommand CloseWindowCommand { set; get; }

		protected void Close()
		{
			if(CloseWindowCommand != null && CloseWindowCommand.CanExecute(null))
				CloseWindowCommand.Execute(null);
#if DEBUG
			else
				throw new Exception("Close window command равна null");
#endif
		}
	}
}
